<template>
	<view>
		<view class="plr20 pt20 pb240">
			<view>
				<view class="boxItem mb20">
					<view class="tc mb30">基本信息</view>
					<view class="flex mb20">
						<view class="name w160">隐患简题：</view>
						<view class="value">{{resObj.troubleTitle}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">隐患编号：</view>
						<view class="value">{{resObj.troubleNum}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">隐患所在单位：</view>
						<view class="value">{{resObj.troubleUnit}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">隐患等级：</view>
						<view class="value">{{resObj.zdGrade1}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">隐患类型：</view>
						<view class="value">{{resObj.specialtyAssort1}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">隐患来源：</view>
						<view class="value w230">{{resObj.troubleSource}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">填报人：</view>
						<view class="value">{{resObj.createUser}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">填报人所属单位：</view>
						<view class="value">{{resObj.createOrg}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">发现人：</view>
						<view class="value">{{resObj.findPeople}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">发现人所属单位：</view>
						<view class="value">{{resObj.findPeopleUnit}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">填报时间：</view>
						<view class="value">{{resObj.createDate}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">发现日期：</view>
						<view class="value">{{resObj.findDate}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">隐患内容：</view>
						<view class="value w230">{{resObj.troubleContent}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">归属职能部门：</view>
						<view class="value">{{resObj.attachFunctDept1}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">相关附件：</view>
						<view class="cob" @click="checkAttac('080106')">查看</view>
					</view>
				</view>
				<!-- <view class="boxItem mb20">
					<view class="tc mb30">预评估信息</view>
					<view class="flex mb20">
						<view class="name w160">预评估等级：</view>
						<view class="value">{{resObj.priorEvaGrade1}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">预评估负责人：</view>
						<view class="value">{{resObj.priorEvaPeople}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">预评估时间：</view>
						<view class="value">{{resObj.priorEvaDate}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">预评估审核领导：</view>
						<view class="value">{{resObj.priorEvaLeader}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">预评估审核时间：</view>
						<view class="value">{{resObj.priorEvaLeaderDate}}</view>
					</view>
				</view> -->
			</view>
			<view class="boxItem mb20" v-if="resObj.currentState2 != 'ds_fq' && resObj.currentState2 != 'sheng_fq'">
				<view class="tc mb30">评估信息</view>
				<view class="flex mb20">
					<view class="name w160">评估等级：</view>
					<view class="value">{{resObj.evaGrade1}}</view>
				</view>
				<view class="flex mb20">
					<view class="name w160">评估负责人：</view>
					<view class="value">{{resObj.evaPeople}}</view>
				</view>
				<view class="flex mb20">
					<view class="name w160">评估时间：</view>
					<view class="value">{{resObj.evaPeopleDate}}</view>
				</view>
				<view class="flex mb20">
					<view class="name w160">评估审核领导：</view>
					<view class="value">{{resObj.evaCoLeader}}</view>
				</view>
				<view class="flex mb20">
					<view class="name w160">评估审核时间：</view>
					<view class="value">{{resObj.evaCoLeaderDate}}</view>
				</view>
			</view>
			<view>
				<view class="boxItem mb20" v-if="resObj.currentState2 != 'ds_fq' && resObj.currentState2 != 'sheng_fq'">
					<view class="tc mb30">核定信息</view>
					<view class="flex mb20">
						<view class="name w160">职能部门负责人：</view>
						<view class="value">{{resObj.functDeptPeople}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">部门负责人签字日期：</view>
						<view class="value">{{resObj.functDeptPeopleDate}}</view>
					</view>
				</view>
				<view class="boxItem mb20" v-if="resObj.currentState2 != 'ds_fq' && resObj.currentState2 != 'sheng_fq'">
					<view class="tc mb30">治理信息</view>
					<view class="flex mb20">
						<view class="name w160">治理责任单位：</view>
						<view class="value">{{resObj.rnvUnit}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">治理责任人：</view>
						<view class="value">{{resObj.rnvPeople}}</view>
					</view>
					<view v-if="resObj.currentState2 !=='ds_ldhd' && resObj.currentState2 !== 'sheng_ldhd' && resObj.currentState2 !== 'sheng_sh'">
						<view class="flex mb20">
							<view class="name w160">治理期限起始日期：</view>
							<view class="value">{{resObj.rnvStartDate}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">治理期限终止日期：</view>
							<view class="value">{{resObj.rnvEndDate}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">计划项目：</view>
							<view class="value">{{resObj.isProject==1?'是':'否'}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">治理措施/方案：</view>
							<view class="value w230">{{resObj.treatmentPlan}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">治理措施/方案附件：</view>
							<view class="cob" @click="checkAttac('080105')">查看</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">整改完成前防护措施：</view>
							<view class="value">{{resObj.rnvMeasure}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">防控措施附件：</view>
							<view class="cob" @click="checkAttac('080104')">查看</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">治理(整改)完成情况：</view>
							<view class="value">{{resObj.rnvEndCircs}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">治理完成情况附件：</view>
							<view class="cob" @click="checkAttac('080102')">查看</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">治理计划资金(万元)：</view>
							<view class="value">{{resObj.planMoney}}</view>
						</view>
						<view class="flex mb20">
							<view class="name w160">累计投入资金(万元)：</view>
							<view class="value">{{resObj.toteBankroll}}</view>
						</view>
					</view>
				</view>
			</view>
			<view>
				<view class="boxItem mb20" v-if="resObj.currentState2 == 'ys'">
					<view class="tc mb30">验收信息</view>
					<view class="flex mb20">
						<view class="name w160">验收申请单位：</view>
						<view class="value">{{resObj.caApplyUnit}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">负责人：</view>
						<view class="value">{{resObj.caPeople}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">负责人签字日期：</view>
						<view class="value">{{resObj.caPeopleDate}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">验收组织单位：</view>
						<view class="value">{{resObj.caOrganizeUnit}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">验收意见：</view>
						<view class="value w230">{{resObj.caOpinion}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">验收意见附件：</view>
						<view class="cob" @click="checkAttac('080103')">查看</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">验收结论：</view>
						<view class="value w230">{{resObj.caVerdict}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">是否消除隐患：</view>
						<view class="value" v-if="resObj.isRemoveTrouble">{{resObj.isRemoveTrouble==1?'是':'否'}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">验收组长：</view>
						<view class="value">{{resObj.caGroup}}</view>
					</view>
					<view class="flex mb20">
						<view class="name w160">验收组长签字日期：</view>
						<view class="value">{{resObj.caGroupDate}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			code: {
				type: String,
				default: '0'
			},
			resObj:{
				type:Object,
				default:()=>{
					return {}
				}
			}
		},
		data() {
			return {

			}
		},
		methods: {
			checkAttac(classify){
				console.log(classify+'\n'+this.resObj.troubleId)
				uni.navigateTo({
					url:'./../checkTheAttachment/checkTheAttachment?classify='+classify+'&connectId='+this.resObj.troubleId
				})
			}
		},
	}
</script>

<style>
	.w230{
		width: 230rpx;
		word-break: break-all;
	}
	.boxItem {
		padding: 30rpx;
		background-color: #fff;
		box-shadow: 0 2px 4px 0 rgba(237, 237, 237, 0.50);
		border-radius: 16rpx;
		position: relative;
	}

	.name {
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #89939E;
		padding-right: 20rpx;
	}

	.value {
		flex: 1;
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
	}

	.cob {
		flex: 1;
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #3473F9;
	}
</style>
